package jw.hospital.hosp.model.hospital;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jw.hospital.hosp.model.base.BaseMongoEntity;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


@Data
@ApiModel(description = "Department")
@Document("Department")
public class Department extends BaseMongoEntity {
    private static final long serialVersionUID = -7019272706655723885L;

    @ApiModelProperty(value = "医院编号")
    @Indexed(unique = true)
    private String  hoscode;

    @ApiModelProperty(value = "科室编号")
    @Indexed
    private   String  depcode;

    @ApiModelProperty(value = "科室名称")
    private   String deptname;

    @ApiModelProperty(value = "科室描述")
    private   String  intro;

    @ApiModelProperty(value = "大科室编号")
    private   String  bigcode;

    @ApiModelProperty(value = "大科室名称")
    private   String  bigname;

}
